<?php
Class Page
{
	public $status;
	public $status_msg;
	public $data;
	function __construct()
	{
		$num   =func_num_args(); 		
		$args=func_get_args();
		switch   ($num){   
			case   0:  
			break;   
			case   1:     
			$this->Page1($args[0]);
			break;   
			case   2:     
			$this->Page2($args[0],$args[1]);			
			break;
			case   3:     
			$this->Page3($args[0],$args[1],$args[2]);
			break;   
		} 
	}
	function Page1($_status)
	{
		$this->status=$_status;
	}
	function Page2($_status,$_status_msg)
	{
		$this->status=$_status;
		$this->status_msg=$_status_msg;
	}
	function Page3($_status,$_status_msg,$_data)
	{
		$this->status=$_status;
		$this->status_msg=$_status_msg;
		$this->data=$_data;
	}
}

?>